<?php
/*
Template Name: Full Width Page
*/
?>

<?php get_header(); ?>

<!-- main content start -->

	<?php if( have_posts() ) : while( have_posts() ) : the_post(); ?>
    
    <div class="castshadow grid_12 clearfix">
    
    <!-- title start -->

    <h1><?php the_title(); ?></h1>
    
    <!-- title end -->
    
    <?php 
    $content = get_the_content();
    $content = apply_filters( 'the_content', $content );
    $content = str_replace( ']]>', ']]&gt;', $content );
    $content = preg_replace( '|(class=[\'"]wp-caption.*?[\'"]).*?(style=[\'"](.*?)[\'"]).*?|i', '$1', $content );
	$content = preg_replace( '/<p[^>]*><\\/p[^>]*>/', '', $content );
    echo $content;
	?>
    
    </div>

	<?php endwhile; ?>
    
    <!-- comments -->
    <?php // if( 'open' == $post->comment_status ) comments_template(); // uncomment if you want to enable comments for pages ?>
    <!-- end comments -->
    
    <?php else : ?>
    
    <!-- no content start -->

	<div class="castshadow grid_12 clearfix">
    
        <h1><?php _e( "Nothing found!", "sofa_suppastore" ); ?></h1>
        <p><?php _e( "Sorry but no posts found. Take your time, there's gonna be soon to see something listed here.", "sofa_suppastore" ); ?></p>
    
    </div>
    
    <!-- no content end -->

	<?php endif; ?>
    
<!-- main content end -->

<?php get_footer(); ?>